<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
<link rel="stylesheet" type="text/css" media="screen"
	href="css/main.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<c:if test="${alreadyAnswered}">
	<META HTTP-EQUIV="refresh" CONTENT="5;URL=${pageContext.request.contextPath}">
</c:if>
</head>
<body>
<c:if test="${alreadyAnswered}">
	Invitation has already been answered.<br/>
	You will be redirected in 5 seconds.
</c:if>
<c:if test="${empty alreadyAnswered}">
<div class="main">
	<div class="links">
		[<a href="./login.jsp">logovanje</a>]<br/>
		[<a href="./registration.jsp">registracija</a>]<br/>
	</div>
    <div class="content">	
		Dobro dosli ${answer_contact.firstName} ${answer_contact.lastName} <br/>
		Dobili ste poziv za dogadjaj:<br/>
		<div class="fbbluebox" style="width: 500px;">  
			 			Naziv: ${answer_event.title}<br/>
			 			Opis: ${answer_event.description}<br/>
			 			Pocetak: ${answer_event.startTime}<br/>
			 			Kraj: ${answer_event.endTime}<br/>
			 			Vreme za prijavu: ${answer_event.checkTime}<br/>
			 			Mesto: ${answer_event.place}<br/>
			 			Slika: ${answer_event.image}<br/>
	
					</div> 
		Odgovor:<br/>
		<form action="./respond" method="POST" class="prijavaForma"  accept-charset="ISO-8859-1">
				<div class="fbgreybox" style="width: 400px;">  
		  		<table class="prijavaTabela">
		             <tr>
						<td><input type="submit" name="odgovor" value="prisustvujem"></td>		
						<td><input type="submit" name="odgovor" value="ne prisustvujem"></td>				
		             </tr>
				  </table>
				 </div>							
		</form>
	</div>
	
</div>
</c:if>
	
</body>
</html>